/<template>
  <div>
    <img :src="detail.img" alt="">
    <h3>{{detail.title}}</h3>
    <h3>￥{{detail.price}}元</h3>
  </div>
</template>

<script>
import axios from 'axios'
export default {
  data(){
    return{
      detail:{}
    }
  },
  mounted(){
    axios.get('/goodsDetail',{
      params:{
        id:this.$route.query.id
      }
    }).then(res=>{
      console.log(res);
      this.detail=res.data
    })
  }
}
</script>

<style>

</style>